package net.wanho.entity;

public class Course {
    int cid;
    String cname;
    String profession;
    int createYear;
    String tno;

    Teacher teacher;

    @Override
    public String toString() {
        return "Course{" +
                "cid=" + cid +
                ", cname='" + cname + '\'' +
                ", profession='" + profession + '\'' +
                ", createYear=" + createYear +
                ", tno='" + tno + '\'' +
                ", teacher=" + teacher +
                '}';
    }

    public Course(int cid, String cname, String profession, int createYear, String tno, Teacher teacher) {
        this.cid = cid;
        this.cname = cname;
        this.profession = profession;
        this.createYear = createYear;
        this.tno = tno;
        this.teacher = teacher;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public Course(){};

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getProfession() {
        return profession;
    }

    public void setProfession(String profession) {
        this.profession = profession;
    }

    public int getCreateYear() {
        return createYear;
    }

    public void setCreateYear(int createYear) {
        this.createYear = createYear;
    }

    public String getTno() {
        return tno;
    }

    public void setTno(String tno) {
        this.tno = tno;
    }

    public Course(int cid, String cname, String profession, int createYear, String tno) {
        this.cid = cid;
        this.cname = cname;
        this.profession = profession;
        this.createYear = createYear;
        this.tno = tno;
    }
}
